package com.ruoyi.yyq.mapper;

import java.util.List;
import com.ruoyi.yyq.domain.CarMerchantBalance;

/**
 * 商家余额Mapper接口
 * 
 * @author 尹永青
 * @date 2025-05-14
 */
public interface CarMerchantBalanceMapper 
{
    /**
     * 查询商家余额
     * 
     * @param balanceId 商家余额主键
     * @return 商家余额
     */
    public CarMerchantBalance selectCarMerchantBalanceByBalanceId(Long balanceId);

    /**
     * 查询商家余额列表
     * 
     * @param carMerchantBalance 商家余额
     * @return 商家余额集合
     */
    public List<CarMerchantBalance> selectCarMerchantBalanceList(CarMerchantBalance carMerchantBalance);

    /**
     * 新增商家余额
     * 
     * @param carMerchantBalance 商家余额
     * @return 结果
     */
    public int insertCarMerchantBalance(CarMerchantBalance carMerchantBalance);

    /**
     * 修改商家余额
     * 
     * @param carMerchantBalance 商家余额
     * @return 结果
     */
    public int updateCarMerchantBalance(CarMerchantBalance carMerchantBalance);

    /**
     * 删除商家余额
     * 
     * @param balanceId 商家余额主键
     * @return 结果
     */
    public int deleteCarMerchantBalanceByBalanceId(Long balanceId);

    /**
     * 批量删除商家余额
     * 
     * @param balanceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCarMerchantBalanceByBalanceIds(Long[] balanceIds);

    CarMerchantBalance selectCarMerchantBalanceByMid(Long mid);
}
